/*
package com.xq.security.web;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ResourceHandlerRegistry;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

*/
/**
 * @author [wzslw@163.com]
 * @since 18-5-3 下午3:29
 *//*

@Configuration
public class WebMvcConfig implements WebMvcConfigurer {
    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/index.html").setViewName("mall/index");
        registry.addViewController("/").setViewName("mall/index");
        registry.addViewController("/login.html").setViewName("/mall/login");

        registry.addViewController("/admin/index.html").setViewName("/admin/index");
        registry.addViewController("/admin").setViewName("/admin/index");
        registry.addViewController("/admin/login.html").setViewName("/admin/login");

        registry.addViewController("/shop/admin/index.html").setViewName("/shop/admin/index");
        registry.addViewController("/shop/admin").setViewName("/shop/admin/index");
        registry.addViewController("/shop/admin/login.html").setViewName("/shop/admin/login");
    }

    @Override
    public void addResourceHandlers(ResourceHandlerRegistry registry) {
        registry
                .addResourceHandler("/static*/
/**")
                .addResourceLocations("classpath:/static/");
    }
}*/
